//
//  UIViewController+STPresent.h
//  SportHome
//
//  Created by stoneobs on 16/11/25.
//  Copyright © 2016年 stoneobs. All rights reserved.
// Imagepicker,Alert ,ActionSheet 弹出框

#import <UIKit/UIKit.h>

typedef void(^ALERTBLOCK)(NSString * name);//alert 回调
typedef void (^ACTIONBLOCK)(int tag); //actionsheet 回调
typedef void (^IMAGEPICKER) (UIImage * image); //图片选择回调

@interface UIViewController (STPresent)<UIImagePickerControllerDelegate,UINavigationControllerDelegate>
@property(nonatomic,strong)UIImagePickerController      *STImageVC;//可以修改此属性的navbar来改变导航栏颜色
@property(nonatomic,copy)  IMAGEPICKER                   imgePickerBlock;

// UIAlertController
- (void)showAlert:(NSString*)message;
- (void)showAlert:(NSString *)message andWithBlock:(ALERTBLOCK)finsh;
- (void)showAlertCancelAndConfirm:(NSString*)message andWithBlock:(ALERTBLOCK)finsh;//默认取消和确认按钮，可以通过finsh中的string来判断
- (void)showAlertCustomTitleOne:(NSString *)one Two:(NSString*)two  message:(NSString*)message andWithBlock:(ALERTBLOCK)finsh;
- (void)showActionSheet:(NSArray<NSString*>*)strArray andWithBlock:(ACTIONBLOCK)test;
//直接弹出图片选择控制器
- (void)showDefultImagePicker:(IMAGEPICKER)pickerBlock;

@end
